<include file="Public:header" /><!-- header -->

<div class="wrap" id="profile-page">
<div id="icon-{$ur_here.action}" class="icon32"><br /></div><h2>{$ur_here.text}</h2>

<form id="your-profile" action="{:U('Admin/Users/profile')}" method="post">
<h3>个人设置</h3>
<table class="form-table">
<tr>
  <th scope="row">管理界面配色方案</th>
<td>
<fieldset><legend class="screen-reader-text"><span>管理界面配色方案</span></legend>
<div class="color-option"><input name="admin_color" id="admin_color_classic" type="radio" value="classic" class="tog" <eq name="meta.admin_color" value="classic" >checked='checked'</eq>/>
	<table class="color-palette">
	<tr>
		<td style="background-color: #5589aa" title="classic">&nbsp;</td>
		<td style="background-color: #cfdfe9" title="classic">&nbsp;</td>
		<td style="background-color: #d1e5ee" title="classic">&nbsp;</td>
		<td style="background-color: #eff8ff" title="classic">&nbsp;</td>
		</tr>
	</table>
	<label for="admin_color_classic">蓝色</label>
</div>
	<div class="color-option"><input name="admin_color" id="admin_color_fresh" type="radio" value="fresh" class="tog" <eq name="meta.admin_color" value="fresh" >checked='checked'</eq>/>
	<table class="color-palette">
	<tr>
		<td style="background-color: #7c7976" title="fresh">&nbsp;</td>
		<td style="background-color: #c6c6c6" title="fresh">&nbsp;</td>
		<td style="background-color: #e0e0e0" title="fresh">&nbsp;</td>
		<td style="background-color: #f1f1f1" title="fresh">&nbsp;</td>
		</tr>
	</table>
	<label for="admin_color_fresh">灰色</label>
</div>
	</fieldset>
</td>
</tr>
<tr class="show-admin-bar">
<th scope="row">显示管理工具栏</th>
<td><fieldset><legend class="screen-reader-text"><span>显示管理工具栏</span></legend>
<label for="admin_bar_front">
<input name="show_admin_bar_front" type="checkbox" id="show_admin_bar_front" value="1"  <eq name="meta.show_admin_bar_front" value="1" >checked='checked'</eq>/>
在浏览站点时</label><br />
<label for="admin_bar_admin">
<input name="show_admin_bar_admin" type="checkbox" id="show_admin_bar_admin" value="1"  <eq name="meta.show_admin_bar_admin" value="1" >checked='checked'</eq>/>
在控制板中</label></fieldset>
</td>
</tr>
</table>

<h3>姓名</h3>

<table class="form-table">
	<tr>
		<th><label for="username">用户名</label></th>
		<td><input type="text" name="username" id="username" value="{$vo.username}" disabled="disabled" class="regular-text" /> <span class="description">用户名不可更改。</span></td>
	</tr>
<tr>
	<th><label for="nicename">昵称 <span class="description">(必填)</span></label></th>
	<td><input type="text" name="nicename" id="nicename" value="{$vo.nicename}" class="regular-text" /><span class="description">请以半角逗号","分割多个昵称。</span></td>
</tr>
</table>

<h3>联系信息</h3>

<table class="form-table">
<tr>
	<th><label for="email">电子邮件 <span class="description">(必填)</span></label></th>
	<td><input type="text" name="email" id="email" value="{$vo.email}" class="regular-text"  />
		</td>
</tr>

<tr>
	<th><label for="url">站点</label></th>
	<td><input type="text" name="url" id="url" value="{$vo.url}" class="regular-text code" /></td>
</tr>
</table>

<h3>安全</h3>

<table class="form-table">
<tr id="password">
	<th><label for="pass1">新密码</label></th>
	<td><input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> <span class="description">如果您想修改您的密码，请在此输入新密码。不然请留空。</span><br />
		<input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <span class="description">再输入一遍新密码。</span><br />
		<div id="pass-strength-result">强度评估</div>
		<br /> 
		<p class="descriptiont">提示：您的密码最好至少包含 7 个字符。为了保证密码强度，使用大小写字母，数字和符号，例如 ! " ? $ % ^ &amp; )。</p>
	</td>
</tr>
</table>
<input type="hidden" name="action" value="profile" />
<input type="hidden" name="userid" id="userid" value="{$vo.userid}" />

<p class="submit"><input type="submit" name="submit" id="submit" class="button-primary" value="更新个人资料"  /></p>
</form>
</div>

<script type='text/javascript'>
/* <![CDATA[ */
if (window.location.hash == '#password') {
	document.getElementById('pass1').focus();
}
	
var pwsL10n = {
	empty: "强度评估",
	short: "极弱",
	bad: "弱",
	good: "中等",
	strong: "强",
	mismatch: "不匹配"
};
try{convertEntities(pwsL10n);}catch(e){};
/* ]]> */
</script>
<script type='text/javascript' src='__PUBLIC__/admin/js/password-strength-meter.js?{$Think.const.VERHASH}'></script>
<script type='text/javascript' src='__PUBLIC__/admin/js/user-profile.js?{$Think.const.VERHASH}'></script>
<include file="Public:footer" />